package com.designpatterns.singleton;

/**
 * @author Brook
 */
public class Singleton2 {
    private static Singleton2 uniqueInstance = new Singleton2();

    private Singleton2() {};

    /**
     * 急切创建实例，在单件运行不太繁重的情况下
     */
    public static Singleton2 getInstance() {
        return uniqueInstance;
    }



}

